<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>病历管理</title>
  <link rel="stylesheet" href="../../static/bootstrap/css/bootstrap.min.css" />
  <link rel="stylesheet" href="../../static/css/global.css" />
</head>

<body>
  <main class="mainBox" th:fragment="medRecManage">
    <div class="container shadow-md-sm">
      <section th:each="list : ${fatherList}" th:if="${fatherList!=null}" class="border rounded mb-3 p-3 shadow-sm">
        <div th:object="${list.medicalList}">
          <div class="d-flex">
            <p class="me-5"><Strong>患者姓名：</Strong><span>[[*{patientName}]]</span></p>
            <p class="me-5"><Strong>患者性别：</Strong><span>[[*{patientSex}]]</span></p>
            <p class="me-5"><Strong>患者年龄：</Strong><span>[[*{patientAge}]]</span></p>
            <p class="me-5"><Strong>身份证号：</Strong><span>[[*{patientIdcard}]]</span></p>
          </div>
          <div class="d-flex">
            <p class="me-5"><Strong>挂号编号：</Strong><span>[[*{id}]]</span></p>
            <p class="me-5"><Strong>挂号类别：</Strong><span>[[*{registeredType}]]</span></p>
            <p class="me-5"><Strong>挂号科室：</Strong><span>[[*{registeredSection}]]</span></p>
            <p class="me-5"><Strong>挂号时间：</Strong><span>[[*{createTime}]]</span></p>
          </div>
        </div>
        <div th:object="${list.prescriptionList}">
          <div class="d-flex">
            <p class="me-5"><Strong>医师编号：</Strong><span>[[*{doctorId}]]</span></p>
            <p class="me-5"><Strong>药师编号：</Strong><span>[[*{apothecaryId}]]</span></p>
          </div>
          <p><Strong>诊断结果：</Strong><span>[[*{diagnosis}]]</span></p>
          <p><Strong>治疗方案：</Strong><span>[[*{advices}]]</span></p>
          <p><Strong>挂号编号：</Strong><span>[[*{id}]]</span></p>
        </div>
        <div th:object="${list.paymentList}">
          <div class="d-flex">
            <p class="me-5"><Strong>挂号费用：</Strong><span>[[*{registeredCost}]]</span></p>
            <p class="me-5"><Strong>医疗费用：</Strong><span>[[*{medicineCost}]]</span></p>
          </div>
        </div>
      </section>
      <section th:if="${fatherList==null}">暂无数据哦~ </section>
    </div>
  </main>
  <script src="../../static/bootstrap/js/bootstrap.bundle.min.js"
    th:src="@{/static/bootstrap/js/bootstrap.bundle.min.js}"></script>
</body>

</html>